import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { Finance, FinanceSchema } from './finances/finance.schema'
import {Store,StoreSchema} from './store/store.schema'
import { Revenue, RevenueSchema} from './revenue/revenue.schema'
import { Daily, DailySchema } from './daily/daily.schema'
import { FinanceController } from './finances/finance.controller'
import { FinanceService } from './finances/finance.service'
import { StoreController } from './store/store.controller'
import { StoreService } from './store/store.service'
import { RevenueController } from './revenue/revenue.controller'
import { RevenueService } from './revenue/revenue.service'
import { DailyController } from './daily/daily.controller'
import { DailyService } from './daily/daily.service'
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Finance.name, schema: FinanceSchema, collection: 'finances' },
      { name: Store.name, schema: StoreSchema, collection: 'stores' },
      { name: Revenue.name, schema: RevenueSchema, collection: 'revenues' },
      { name: Daily.name, schema: DailySchema, collection: 'dailies' },
    ]),
  ],
  controllers: [FinanceController,StoreController,RevenueController,DailyController],
  providers: [FinanceService,StoreService, RevenueService, DailyService],
  exports: [],
})
export class FinanceModule {
  
}
